import { createI18n } from 'vue-i18n'
import zh from './lang/zh'
import en from './lang/en'
import {getCurrentLang} from "@/store/modules/lang"



// console.log(en)
// console.log(zh)
const messages = {
  en,
  zh,
}

const i18n = createI18n({
  locale:getCurrentLang(),
  messages, 
  legacy: false,
})

export default i18n

